package com.ctshk.rpc.order.bus.req;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel("巴士取消订单审批req")
public class BusOrderRefundApprovalReq implements Serializable {
	private static final long serialVersionUID = 1L;

	@NotNull(message = "审批实例Id不能为空")
	@ApiModelProperty(value = "审批实例Id")
    private Long approvalId;

	@NotNull(message = "相关业务id不能为空")
    @ApiModelProperty(value = "相关业务id")
    private Long businessId;

	@NotNull(message = "审批状态不能为空")
    @ApiModelProperty(value = "审批状态（0：撤回，4：审批不通过，3：审批通过）")
    private Integer approvalStatus;

    @ApiModelProperty(value = "备注")
    private String comments;
    
    @Valid
    @ApiModelProperty("明细列表")
    private List<BusOrderRefundApprovalItemReq> itemList = new ArrayList<>();
}
